import axios from '@/http/index';

export function getToken() {
  return axios({
    url: '/monitor/count/getToken',
    method: 'post'
  });
}
export function statisticsIndicates(option: string) {
  return axios({
    // headers: {
    //   paramsHeader: JSON.stringify(token)
    // },
    url: '/monitor/count/queryDayAndEXecutionCount',
    method: 'post',
    data: option
  });
}
export function statisticsIndicateDetail(option: string) {
  return axios({
    // headers: {
    //   paramsHeader: JSON.stringify(token)
    // },
    url: '/monitor/count/queryDayAndEXecutionDetail',
    method: 'post',
    data: option
  });
}
/* 获取系统列表 */
export function queryDayAndEXecutionPrj(option: string) {
  return axios({
    // headers: {
    //   paramsHeader: JSON.stringify(token)
    // },
    url: '/monitor/count/queryDayAndEXecutionPrj',
    method: 'post',
    data: option
  });
}
// export function getToken(option: string) {
//   return axios({
//     url: '/dmoperation/V1/token.do',
//     method: 'post',
//     data: option
//   });
// }
// export function statisticsIndicates(token: string, option: string) {
//   return axios({
//     headers: {
//       paramsHeader: JSON.stringify(token)
//     },
//     url: '/dmoperation/stardard/queryDayAndEXecutionCount.do',
//     method: 'post',
//     data: option
//   });
// }
// export function statisticsIndicateDetail(token: string, option: string) {
//   return axios({
//     headers: {
//       paramsHeader: JSON.stringify(token)
//     },
//     url: '/dmoperation/stardard/queryDayAndEXecutionDetail.do',
//     method: 'post',
//     data: option
//   });
// }
